<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>8-浮动特点-浮动找浮动03</title>
		<style type="text/css">
			/*
				举例：美国绕过安理会单独执行（向左/向右浮动），执行俄罗斯和乌克兰决议，小日本跟随
			*/
			*{
				margin:0;
				padding:0;
			}
			div{
				width:200px;
				height:200px;
				line-height:200px;
				text-align:center;
				font-size:30px;
				color: #fff;
				font-weight: 700;
			}
			.red{
				background:red;
			}
			.orange{
				background: orange;
				/*向右浮动*/
				float: right;
			}
			.blue{
				background: blue;
				float: right;
			}
		</style>
	</head>
	<body>
		<div class="red">中国</div>
		<div class="orange">美国</div>
		<div class="blue">日本</div>
	</body>
</html>

